import { http } from "@/utils/http";
// import { baseUrlApi } from "./utils";

/** 菜单列表 */
export const itemList = (data?: object) => {
  return http.request<any>("post","api/auth/menus/index", { data });
};

/** 菜单添加 编辑 */
export const addItem = (data?: object) => {
  return http.request<any>("post","api/auth/menus/add", { data });
};

/** 菜单删除 */
export const delItem = (data?: object) => {
  return http.request<any>("post","api/auth/menus/del", { data });
};
// // url拼接传参
// export const textRequest = (params?: object) => {
//   return http.request("get", "/xxx?message=" + params);
// };
